"""redis 相关学习"""
import redis
from redis.sentinel import  Sentinel

redis_op = redis.Redis(host = '192.168.32.52', port = 6379, db = 10 )
redis_op.set('name', 'python')
redis_op.hset('k','hk1', '121')
# print('=================== 1 =======================')
# sentinel = Sentinel([('192.168.32.52', 20001)])
# master = sentinel.discover_master('mymaster')
# print(master.get('name'))


